home *** CD-ROM | disk | FTP | other *** search
- Path: news1.erols.com!newsmaster@erols.com
- From: Chris Cobb <ccobb@cseg.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: GCC C++ questions
- Date: 19 Mar 1996 02:37:19 GMT
- Organization: CSEG, Inc.
- Message-ID: <4il6kv$3tc@news6.erols.com>
- References: <314c6829@usura.metropolis.nl>
- NNTP-Posting-Host: ccobb.erols.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22KIT (Windows; U; 16bit)
-
- joskam@usura.metropolis.nl (Jurjen Oskam) wrote:
- >Hello there,
- >
- >It works fine, but look at this C++ program:
- >
- >#include <iostream.h>
- >
- >int main()
- >{
- > cout << "Hello!" << endl ;
- >}
- >
- >This compiles OK, but the executable is 69KB! A bit too large, IMHO. ;-)
-
- What arguments did you use to compile this?
-
- >I understand that GCC uses ixemul.library, and that there is another
- >library that's better for programs not ported from UN*X, namely
- >libnix.library. So, how do I install libnix.library (the docs say "don't
- >forget to link it")? I don't know how to "link" it.
-
- Try a -lnix (?) switch...the documentation (somewhere--I don't have it at
- hand) explains how to use the other library. Of course you don't get as
- many system calls, but you may not need them for your application.
-
- Chris
-
-